package com.example.light.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@ApiModel(value = "在线环境数据信息")
@AllArgsConstructor
@NoArgsConstructor
@Data
public class onlineEnvironment {
    @ApiModelProperty("环境光亮度")
    private Integer environmentLuminance;

    @ApiModelProperty("环境光色温")
    private Integer environmentColortemperature;

    @ApiModelProperty("环境温度")
    private float environmentTemperature;

    @ApiModelProperty("环境湿度")
    private float environmentHumidity;

    @ApiModelProperty("烟雾浓度")
    private Integer environmentSmokescope;

    @ApiModelProperty("烟雾浓度")
    private Integer environmentFire;

    @ApiModelProperty("设备工作状态")
    private Integer deviceWorkStatus;

    @ApiModelProperty("环境安全系数")
    private double securityLevel;

    @ApiModelProperty("数据上传时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime environmentTime;
}
